<template>
<div>
  <div class="container">
    <div class="box item-a">box1</div>
  </div>
  <div class="container1">
    <div class="box item-b">box1</div>
  </div>
</div>
  
</template>

<script>
export default {

}
</script>

<style>
.container {
  width: 100%;
  height: 300px;
  margin-bottom: 10px;
  background:darkgray;
  display: grid;
  text-align: center;
  font-size: 20px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px 20px;
}
.box{
  background: chocolate;
  width: 60px;
  height: 60px;
  justify-self: center;
  align-self: center;
  place-self: center;
  display: flex;
  align-items: center;
  grid-column: 2 / 4;
  grid-row: 2 / 4;
}

.container1 {
  width: 100%;
  height: 300px;
  margin-bottom: 10px;
  background:darkgray;
  display: grid;
  text-align: center;
  font-size: 20px;
  grid-template-columns: repeat(4, 50px);
  grid-auto-rows: 80px;
  grid-template-areas: 
    "header header header header"
    "main main . sidebar"
    "footer footer footer footer";
  /* grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr); */
  gap: 10px 20px;
}
.item-b{
  grid-area: footer;
}
</style>